<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>蜂窝六边形</title>
  <style>
    .app {
      margin: 200px auto;
      width: 500px;
      height: 500px;
      position: relative;
    }
    .first {
      z-index: 2;
      position: absolute;
      width: 200px;
      height: 346.41px;
      transform-origin: center center;
      background-color: #ccc;
    }
    .second {
      z-index: 1;
      position: absolute;
      width: 210px;
      height: 363.73px;
      transform-origin: center center;
      background-color: #fff;
    }
    .third {
      position: absolute;
      width: 220px;
      height: 381.05px;
      transform-origin: center center;
      background-color: #ccc;
    }
    .first.border1 {
      transform: rotate(0);
    }
    .second.border1 {
      transform: translate(-5px, -8.66px) rotate(0);
    }
    .third.border1 {
      transform: translate(-10px, -17.32px) rotate(0);
    }
    .first.border2 {
      transform: rotate(60deg);
    }
    .second.border2 {
      transform: translate(-5px, -8.66px) rotate(60deg);
    }
    .third.border2 {
      transform: translate(-10px, -17.32px) rotate(60deg);
    }
    .first.border3 {
      transform: rotate(-60deg);
    }
    .second.border3 {
      transform: translate(-5px, -8.66px) rotate(-60deg);
    }
    .third.border3 {
      transform: translate(-10px, -17.32px) rotate(-60deg);
    }
  </style>
</head>
<body>
  <div class="app">
    <div class="first border1"></div>
    <div class="first border2"></div>
    <div class="first border3"></div>
    <div class="second border1"></div>
    <div class="second border2"></div>
    <div class="second border3"></div>
    <div class="third border1"></div>
    <div class="third border2"></div>
    <div class="third border3"></div>
  </div>
</body>
</html>